<admintpl file="header" />
  <style>
	  .yangshi{
		  width: 80px;
	  }
	  .tijiao{
		  width: 120px;height: 35px; vertical-align:middle;
		  margin-left: 40%;
		  background: red;
		  color: white;
		  border: none;
		  border-radius: 3px;

	  }
  </style>
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:U('Odds/k3')}">快3赔率</a></li>
		<li class=""><a href="{:U('Odds/fc3d')}">福彩3D奖金</a></li>
		<li class=""><a href="{:U('Odds/kl8')}">快乐8奖金</a></li>
		<li class=""><a href="{:U('Odds/pk10')}">PK10奖金</a></li>
		<li class=""><a href="{:U('Odds/pl3')}">排列3奖金</a></li>
		<li class=""><a href="{:U('Odds/ssc')}">时时彩奖金</a></li>
		<li class=""><a href="{:U('Odds/syx5')}">11选5奖金</a></li>
	</ul>
   <form class="form" method="post" action="{:U('Odds/k3')}">
	   <span>大/小/单/双赔率：<input type="text" name="daxiao" class="yangshi daxiao" value="{$arr.daxiao}"></span>
	   <span style="margin-left: 100px">和3/和18赔率：<input type="text" name="he3_he18" class="yangshi he3_he18" value="{$arr.he3}"></span>
	   <span style="margin-left: 100px">和4/和17赔率：<input type="text" name="he4_he17" class="yangshi he4_he17" value="{$arr.he4}"></span><br/>
	   <span style="margin-left: 15px">和5/和16赔率：<input type="text" name="he5_he16" class="yangshi he5_he16" value="{$arr.he5}"></span>
	   <span style="margin-left: 100px">和6/和15赔率：<input type="text" name="he6_he15" class="yangshi he6_he15" value="{$arr.he6}"></span>
	   <span style="margin-left: 100px">和7/和14赔率：<input type="text" name="he7_he14" class="yangshi he7_he14" value="{$arr.he7}"></span><br/>
	   <span style="margin-left: 15px">和8/和13赔率：<input type="text" name="he8_he13" class="yangshi he8_he13" value="{$arr.he8}"></span>
	   <span style="margin-left: 100px">和9/和12赔率：<input type="text" name="he9_he12" class="yangshi he9_he12" value="{$arr.he9}"></span>
	   <span style="margin-left: 95px">和10/和11赔率：<input type="text" name="he10_he11" class="yangshi he10_he11" value="{$arr.he10}"></span><br/>
	   <span style="margin-left: 5px">三同号通选赔率：<input type="text" name="t3tx" class="yangshi t3tx" value="{$arr.t3tx}"></span>
	   <span style="margin-left: 88px">三同号单选赔率：<input type="text" name="t3dx" class="yangshi t3dx" value="{$arr.t3dx}"></span>
	   <span style="margin-left: 105px">三不同号赔率：<input type="text" name="bt3" class="yangshi bt3" value="{$arr.bt3}"></span><br/>
	   <span style="margin-left: 5px">三连号通选赔率：<input type="text" name="t3lh" class="yangshi t3lh" value="{$arr.t3lh}"></span>
	   <span style="margin-left: 88px">二同号复选赔率：<input type="text" name="ertfx" class="yangshi ertfx" value="{$arr.ertfx}"></span>
	   <span style="margin-left: 92px">二同号单选赔率：<input type="text" name="ertdx" class="yangshi ertdx" value="{$arr.ertdx}"></span><br/>
	   <span style="margin-left: 20px">二不同号赔率：<input type="text" name="bt2" class="yangshi bt2" value="{$arr.bt2}"></span><br/><br/><br/><br/>

	   <button type="button" class="tijiao" onclick="sav()" >保存</button>

   </form>
<div class="c-tan-shadow"></div>
<script src="__PUBLIC__/js/common.js"></script>
</div>
</body>
</html>

<script>
	function sav(){
		var daxiao = $(".daxiao").val();
		var he3_he18 = $(".he3_he18").val();
		var he4_he17 = $(".he4_he17").val();
		var he5_he16 = $(".he5_he16").val();
		var he6_he15 = $(".he6_he15").val();
		var he7_he14 = $(".he7_he14").val();
		var he8_he13 = $(".he8_he13").val();
		var he9_he12 = $(".he9_he12").val();
		var he10_he11 = $(".he10_he11").val();
		var t3tx = $(".t3tx").val();
		var t3dx = $(".t3dx").val();
		var bt3 = $(".bt3").val();
		var t3lh = $(".t3lh").val();
		var ertfx = $(".ertfx").val();
		var ertdx = $(".ertdx").val();
		var bt2 = $(".bt2").val();

		if(daxiao == ""){
			alert("大/小/单/双的赔率不能为空");
			return false;
		}
		if(he3_he18 == ""){
			alert("和3/和18的赔率不能为空");
			return false;
		}
		if(he4_he17 == ""){
			alert("和4/和17的赔率不能为空");
			return false;
		}
		if(he5_he16 == ""){
			alert("和5/和16的赔率不能为空");
			return false;
		}
		if(he6_he15 == ""){
			alert("和6/和15的赔率不能为空");
			return false;
		}
		if(he7_he14 == ""){
			alert("和7/和14的赔率不能为空");
			return false;
		}
		if(he8_he13 == ""){
			alert("和8/和13的赔率不能为空");
			return false;
		}
		if(he9_he12 == ""){
			alert("和9/和12的赔率不能为空");
			return false;
		}
		if(he10_he11 == ""){
			alert("和10/和11的赔率不能为空");
			return false;
		}
		if(t3tx == ""){
			alert("三同号通选的赔率不能为空");
			return false;
		}
		if(t3dx == ""){
			alert("三同号单选的赔率不能为空");
			return false;
		}
		if(bt3 == ""){
			alert("三不同号的赔率不能为空");
			return false;
		}
		if(t3lh == ""){
			alert("三连号通选的赔率不能为空");
			return false;
		}
		if(ertfx == ""){
			alert("二同号复选的赔率不能为空");
			return false;
		}
		if(ertdx == ""){
			alert("二同号单选的赔率不能为空");
			return false;
		}
		if(bt2 == ""){
			alert("二不同号的赔率不能为空");
			return false;
		}
     $(".form").submit();
	}
</script>